package com.example.dao;

import com.example.pojo.User;
import com.example.utils.DBConnection;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface UserDao {
    public User login(String username, String password) throws Exception ;

    public List<Map<String,Object>> getUserTopicList(Integer uId) ;

    public List<Map<String,Object>> getUserCollectionList(Integer uId) ;

    public List<Map<String,Object>> getUserNewsList(Integer uId) ;

    public Map<String,Object> getTopic(Integer tId) ;

    public int updatePass(Integer uId,String password) ;

    public Integer updateAvatar(Integer uId,String fileName) ;

    public Integer updateInfo(Integer uId,String nickname,String phone,String email) ;

    public Map<String,Object> getOtherUser(Integer uId);

}
